package jeopardy.common.protocol.game.play;

import java.io.Serializable;

/*
 * This class is used to mark the end of a game, received by client from server
 * contains:
 * 1) History of question/answer in the game
 * 
 * 
 */
public class GameRecordMsg implements Serializable{

	private static final long serialVersionUID = 923449828L;
	
	private String gid;
	private String[] players;
	private QuestionAnswerMsg[] history;
	private String creator;
	private String winner;
	private int pointsWon;
	private long timeStarted;
	
	public GameRecordMsg(String gid, String[] players, QuestionAnswerMsg[] history, String creator, String winner, int pointsWon, long timeStarted) {
		this.gid = gid;
		this.players = players;
		this.history = history;
		this.creator = creator;
		this.winner = winner;
		this.pointsWon = pointsWon;
		this.timeStarted = timeStarted;
	}
	public String getGid() {
		return gid;
	}
	public String[] getPlayers() {
		return players;
	}
	public QuestionAnswerMsg[] getHistory() {
		return history;
	}
	public String getCreator() {
		return creator;
	}
	public String getWinner() {
		return winner;
	}
	public int getPointsWon() {
		return pointsWon;
	}
	public long getTimeStarted() {
		return timeStarted;
	}
}
